<template>
	<view class="">
		<view class="address">
			<view class="address_title_box">
				<view class="address_title">
					黑游台球-万达广场
				</view>
				<view class="address_title_border">
					营业中
				</view>
			</view>
			<view class="address_folter">
				<view class="address_img"></view>
				<view class="address_title">
					济宁万达广场路
				</view>
			</view>
			<view class="number flex justify-end align-center">
				3.80KM
			</view>
		</view>
		<view class="input_view flex flex-direction align-center justify-center">
			<image class="platform" src="../static/platform.png" mode=""></image>
			<view class="position_view ">
				<input type="text" placeholder="请输入团购劵码" />
				<image @click="verification" class="frame" src="../static/frame.png" mode=""></image>
			</view>

		</view>
		<button class="button_view">立即验券</button>
	</view>
</template>

<script setup>
	function verification() {
		uni.scanCode({
			success(res) {
				console.log(res)
			}
		})
	}
</script>

<style lang="scss" scoped>
	.address {
		margin: 32rpx;
		background: linear-gradient(180deg, rgba(0, 255, 131, 0.1) 0%, rgba(16, 199, 110, 0) 100%);
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		padding: 24rpx;

		.address_title_box {
			display: flex;
			align-items: center;

			.address_title {
				font-family: PingFang SC, PingFang SC;
				font-weight: 600;
				font-size: 30rpx;
				color: #333333;
			}

			.address_title_border {
				display: flex;
				justify-content: center;
				align-items: center;
				width: 106rpx;
				height: 38rpx;
				border-radius: 19rpx 19rpx 19rpx 19rpx;
				border: 1rpx solid #10C76E;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 22rpx;
				color: #10C76E;
				margin-left: 20rpx;
				margin-top: 20rpx;
			}


		}

		.address_folter {
			display: flex;
			align-items: center;

			.address_img {
				display: block;
				width: 24rpx;
				height: 24rpx;
				background-color: lawngreen;
			}

			.address_title {
				font-family: PingFang SC, PingFang SC;
				font-weight: bold;
				font-size: 24rpx;
				color: #333333;
				margin-left: 8rpx;
			}

			.number {
				font-family: PingFang SC, PingFang SC;
				font-weight: bold;
				font-size: 24rpx;
				color: #333333;
			}
		}

	}

	.input_view {
		margin: 0 32rpx;
		width: 686rpx;
		height: 320rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(51, 51, 51, 0.1);
		border-radius: 20rpx 20rpx 20rpx 20rpx;

		.platform {
			width: 224rpx;
			height: 88rpx;
			margin-top: 20rpx;
		}

		.position_view {
			position: relative;
			margin-top: 40rpx;
			width: 638rpx;
			height: 100rpx;
			background: #FFFFFF;
			border-radius: 50rpx 50rpx 50rpx 50rpx;
			border: 2rpx solid #333333;
			padding: 28rpx;

			input {
				width: 90%;
			}

			.frame {
				width: 60rpx;
				height: 60rpx;
				position: absolute;
				top: 20rpx;
				right: 20rpx;
			}
		}

	}

	.button_view {
		position: fixed;
		bottom: 100rpx;
		left: 65rpx;
		width: 630rpx;
		height: 96rpx;
		background: #10C76E;
		box-shadow: 0rpx 0rpx 40rpx 0rpx rgba(255, 255, 255, 0.25);
		border-radius: 48rpx 48rpx 48rpx 48rpx;
		border: 2rpx solid rgba(16, 199, 110, 0.3);
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 40rpx;
		color: #FFFFFF;
		line-height: 96rpx;
		text-shadow: 0px 2px 0px rgba(0, 0, 0, 0.1);
	}
</style>